import React, { PureComponent } from 'react'
// import Com from '../../../../02-核心概念/react-props-dom/src/Com'

 function TaskFunc(props) {
  console.log('TaskFunc')
  return (
    <li className={props.isFinish ?'finish':''} >

      {props.name}
    </li>
  )
}


export default memo(TaskFunc)
function memo (Comp){
  return class Memo extends PureComponent {
    render(){
      return <>
        <Comp {...this.props}></Comp>
      </>
    }
  }
}
// class MyMemo extends PureComponent{

// }